import axios from "axios"
class ConstructionLogListModel{
  getWorkLogData(formInline){
    return axios.get("http://localhost/NyxWorkLogController",{params:formInline})
  }
  getOrgData(){
    return axios.get("http://localhost/NyxWorkLogController/org")
  }
  getMx(id){
    return axios.get(`http://localhost/NyxWorkLogController/detail/${id}`)
  }
  del(id){
    return axios.delete(`http://localhost/NyxWorkLogController/${id}`)
  }
  save(formInline,WorkLogDetails){
    var params={
      workLog:formInline,
      workLogDetails:WorkLogDetails
    }
    return axios.post(`http://localhost/NyxWorkLogController`,params)
  }
  getId(){
    return axios.get(`http://localhost/NyxWorkLogController/id`)
  }
  update(formInline,WorkLogDetails){
    console.log(formInline)
    console.log(WorkLogDetails)
    var params={
      workLog:formInline,
      workLogDetails:WorkLogDetails
    }
    return axios.put(`http://localhost/NyxWorkLogController`,params)
  }
}
export default ConstructionLogListModel